#ifdef USEJNI
#include "jni.h"
#ifdef __cplusplus
extern "C" {
#endif
	JNIEXPORT jlong JNICALL Java_yzrilyzr_dsp_RingBuffer_constructor(JNIEnv*, jobject,jint size);
	JNIEXPORT void JNICALL Java_yzrilyzr_dsp_RingBuffer_destructor(JNIEnv*, jobject, jlong ptr);
	JNIEXPORT void JNICALL Java_yzrilyzr_dsp_RingBuffer_write(JNIEnv*, jobject, jlong ptr,jdouble value);
	JNIEXPORT void JNICALL Java_yzrilyzr_dsp_RingBuffer_fill(JNIEnv*, jobject, jlong ptr,jdouble value);
	JNIEXPORT jdouble JNICALL Java_yzrilyzr_dsp_RingBuffer_getFromNewest(JNIEnv*, jobject, jlong ptr,jint index);
	JNIEXPORT jdouble JNICALL Java_yzrilyzr_dsp_RingBuffer_getFromOldest(JNIEnv*, jobject, jlong ptr,jint index);
	JNIEXPORT jint JNICALL Java_yzrilyzr_dsp_RingBuffer_capacity(JNIEnv*, jobject, jlong ptr);
	JNIEXPORT void JNICALL Java_yzrilyzr_dsp_RingBuffer_reset(JNIEnv*, jobject, jlong ptr);
	JNIEXPORT jdouble JNICALL Java_yzrilyzr_dsp_RingBuffer_newest(JNIEnv*, jobject, jlong ptr);
	JNIEXPORT jint JNICALL Java_yzrilyzr_dsp_RingBuffer_mod(JNIEnv*, jobject, jint x, jint m);
#ifdef __cplusplus
}
#endif
#endif
